package com.heima.Test3;

public class GirlFriendTest {
    public static void main(String[] args) {
        GirlFriend girlFriend = new GirlFriend();
        //set方法赋值
        girlFriend.setName("小诗诗");
        girlFriend.setAge(18);
        girlFriend.setGender("女");
        //get方法对外取值
        System.out.println(girlFriend.getName());
        System.out.println(girlFriend.getAge());
        System.out.println(girlFriend.getGender());
        girlFriend.sleep();
        girlFriend.eat();


    }
}

